<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/001引入方式.js"></script>

    
    <script>
    
        alert("呵呵");
    
    </script>



</head>
<body>
    

    <!--写到标签里的js  依赖于事件  不推荐-->
    <div class="box"  onclick="alert('哈哈');" >我是一个div</div>


</body>
</html>